VERIFYING: 1,
VERIFICATION_FAILED: 2,
VERIFICATION_SUCCEEDED: 3,
+ VERIFICATION_CANCELLED: 4,
};
var BeginRequestType = {
if (oldStatus == AuthPromptStatus.VERIFICATION_FAILED)
this.emit('failed');
+ else if (oldStatus === AuthPromptStatus.VERIFICATION_CANCELLED)
+ this.emit('cancelled');
let beginRequestType;
if (this._mode == AuthPromptMode.UNLOCK_ONLY) {
// The user is constant at the unlock screen, so it will immediately
// respond to the request with the username
+ if (oldStatus === AuthPromptStatus.VERIFICATION_CANCELLED)
+ return;
beginRequestType = BeginRequestType.PROVIDE_USERNAME;
} else if (this._userVerifier.serviceIsForeground(OVirt.SERVICE_NAME) ||
this._userVerifier.serviceIsForeground(Vmware.SERVICE_NAME) ||
if (this.verificationStatus == AuthPromptStatus.VERIFICATION_SUCCEEDED)
return;
+ this.verificationStatus = AuthPromptStatus.VERIFICATION_CANCELLED;
this.reset();
- this.emit('cancelled');
}
});